$(function(){
	function appendFall() {
		for (var i = 0; i < personalJson.length; i++) {
			var b_img = personalJson[i].img;
			var b_introduce = personalJson[i].introduce;
			var b_money = personalJson[i].money;
			var brand = '';
			brand = `
				<li><a href=""><img
							src="${b_img}"
							alt="">
						<a href="" class="main-a-a">${b_introduce}</a>
					</a>
					<div>￥${b_money}</div>
				</li>
				`;
			$('.main-div-ul').append(brand);
	
		}
	}
	
	
	
	
	
	
	appendFall();
	
	for (var i = 0; i < localStorage.length; i++) {
	if (localStorage!=null) {
		
		$(".top-fl-tex").html($(`<a href="login.html">欢迎登录</a>
						<a href="#" id="tuichu">退出登录</a>`));
	}
	}
	
	

	$('.main-i').click(function(){
		$(this).parent('dt').siblings('.main-dd').children().toggleClass('main-dd-p');
		$(this).children('img').toggleClass('img1')
	})
	$('.main-means-1-i').mousemove(function(){
		$(this).siblings('span').css('opacity','1');
		
	})
	$('.main-means-1-i').mouseout(function(){
		$(this).siblings('span').css('opacity','0');
		
	})
})